/*********************
 * 接口文件
 * author : 张小涛
 * verson : 1.0
 * desc   ：
 *  【不可为空】act  接口编号 
 *  【可为空】loading  是否显示加载动画，1 不显示，其他值显示。默认为 1
 */

import Vuex from '../../store/index.js'
import Tool from './tool.js'

/******************************      Default 通用模块      ******************************/
const Default = {
	//GET请求
	getUserInfo(requestInfo, successCallback, errorCallback) {
		requestInfo = requestInfo || {};
		Tool.apiFun.getDataFromServer('api/User/Get_Base', requestInfo, "GET", successCallback, errorCallback);
	},
	//POST请求
	postUserInfo(requestInfo, successCallback, errorCallback) {
		requestInfo = requestInfo || {};
		Tool.apiFun.getDataFromServer('api/User/Post_Base', requestInfo, "POST", successCallback, errorCallback);
	},
	//GET请求
	getManagerInfo(requestInfo, successCallback, errorCallback) {
		requestInfo = requestInfo || {};
		Tool.apiFun.getDataFromServer('api/Manager/Get_Base', requestInfo, "GET", successCallback, errorCallback);
	},
	//GET请求
	getFsInfo(requestInfo, successCallback, errorCallback) {
		requestInfo = requestInfo || {};
		Tool.apiFun.getDataFromServer('api/FS/Get_Base', requestInfo, "GET", successCallback, errorCallback);
	},
};



export default {
	Default
}
